<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>

<body>
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111">
   <tr align="center">
		<th>金额</th>
		
		<th>付款人账号</th>		
		<th>付款人名称</th>
		
		<th>收款人账号</th>		
		<th>收款人名称</th>
		<th>收款账号开户行名称</th>
		<th>收款方所在省</th>
		<th>收款方所在市县</th>
		<th>转账类型</th>
		<th>汇款用途</th>
   </tr>
   {[foreach name=outer key=key item=item from=$result]}
   {[assign var="no" value="`$key+1`"]}
   {[if $item.payment_x->name neq '']}
   <tr align="center">
		<td>{[$item.amount|money]}</td>
		
		<td style="mso-number-format:'\@'">{[$bank.code]}</td>
		<td>{[$bank.name]}</td>
		
		<td style="mso-number-format:'\@'">{[$item.payment_x->code|replace:" ":""]}</td>
		<td>{[$item.payment_x->name]}</td>		
		<td>{[$item.payment_x->bank]}</td>
		
		<td>{[$item.bank.province]}</td>
		<td>{[$item.bank.city]}</td>
		
		<td>
		{[if $item.bank.bank eq '平安银行']}
		行内转帐
		{[else]}
		{[if $item.bank.city eq '深圳']}
		同城跨行
		{[else]}
		异地跨行
		{[/if]}
		{[/if]}
		</td>
		<td>{[$item.emp_t]} {[$item.id]}</td>
		<td></td>
	</tr>
	{[/if]}
	{[/foreach]}
</table>

</body>
</html>